<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>我的主页</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../layui/css/layui.css"  media="all">
</head>
<body>
<script src="../jQuery/jquery-3.6.0.js"></script>
<script src="../layui/layui.js" charset="utf-8"></script>
<ul class="layui-nav">
    <li class="layui-nav-item">
        <a href="./ownorder.html">个人中心<span class="layui-badge-dot"></span></a>
    </li>
    <li class="layui-nav-item">
        <a href=""><img src="" class="layui-nav-img">我</a>
        <dl class="layui-nav-child">
            <dd><a href="./homeUser.html">主页</a></dd>
            <dd><a href="./homePage.html">我的信息</a></dd>
            <dd><a href="./function/riderHome.html">骑手之家</a></dd>
        </dl>
    </li>
</ul>

<div>
    <i class="layui-icon layui-icon-face-smile" >uid<b id="uid"></b></i><br/>
    <i class="layui-icon layui-icon-face-smile" >邮箱<b id="username"></b></i><br/>
    <i class="layui-icon layui-icon-face-smile" >昵称<b id="alias"></b></i><br/>
    <i class="layui-icon layui-icon-face-smile" >电话号码<b id="phoneNumber"></b></i><br/>
    <i class="layui-icon layui-icon-face-smile" >余额<b id="balance"></b></i><br/>
</div>





<script>
    $(function (){
        var orderform = JSON.parse(localStorage.getItem("username"))
        if (orderform != null){
            username = orderform.username
        }
        $.ajax({
            type:"post",
            url:"/order/homePage",
            dataType:'json',
            data:{ 'username': username },
            success :function(result){
                localStorage.setItem("data",result.data)
                document.getElementById("uid").innerHTML = result.data.uid
                document.getElementById("username").innerHTML = result.data.username
                document.getElementById("alias").innerHTML = result.data.alias
                document.getElementById("phoneNumber").innerHTML = result.data.phoneNumber
                document.getElementById("balance").innerHTML = result.data.balance
            }
        })
    })
</script>

</body>
</html>